﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using ExamSystem.DAL;
using ExamSystem.Mdeol;
namespace ExamSystem.BLL
{
    public class TclassBLL
    {
        private TclassDAL td = new TclassDAL();
        /// <summary>
        /// 查询班级信息
        /// </summary>
        public List<Tclass> selecttclass()
        {
            return td.selecttclass();
        }


        /// <summary>
        /// 添加班级
        /// </summary>
        public int inserttclass(string tcno)
        {
            return td.inserttclass(tcno);
        }


             /// <summary>
        /// 根据名称查询是否有数据
        /// </summary>
        public int selecttcno(string tcno)
        {
            return td.selecttcno(tcno);
        }


        /// <summary>
        /// 根据班级编号查询是否有数据
        /// </summary>
        public Tclass selecttcid(int tcid)
        {
            return td.selecttcid(tcid);
        }

        /// <summary>
        /// 根据班级编号修改数据
        /// </summary>
        public int update(Tclass t)
        {
            return td.update(t);
        }


         /// <summary>
        /// 根据班级编号删除数据
        /// </summary>
        public int delete(int tcid)
        {
            return td.delete(tcid);
        }
    }
}